package com.zxg.weixin.api.service.domain;

import java.util.HashMap;
import java.util.Map;

import com.zxg.weixin.api.service.WeixinPayService;

public class WeixinOrderQueryRequest {

	
    
    private String appid;
    private String mch_id;
    private String nonce_str;
    private String transaction_id;
    private String out_trade_no;
  
    
    public WeixinOrderQueryRequest() {
		
	}
   
    public WeixinOrderQueryRequest(String out_trade_no) {
		super();
		this.out_trade_no = out_trade_no;
		this.appid=WeixinPayService.APP_ID;
		this.mch_id = WeixinPayService.WX_PAY_ID;
		this.nonce_str = System.currentTimeMillis()+"";
	}

	public Map<String, String> getParams(){
    	Map<String, String> parMap = new HashMap<String, String>();
        parMap.put("nonce_str", ""+nonce_str);
        parMap.put("mch_id", ""+mch_id);
        parMap.put("appid", appid);
        if(transaction_id!=null)
        	parMap.put("transaction_id", transaction_id);
        if(out_trade_no!=null)
        	parMap.put("out_trade_no", out_trade_no+"");
   
        return parMap;
    }

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getMch_id() {
		return mch_id;
	}

	public void setMch_id(String mch_id) {
		this.mch_id = mch_id;
	}

	public String getNonce_str() {
		return nonce_str;
	}

	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
	}

	public String getTransaction_id() {
		return transaction_id;
	}

	public void setTransaction_id(String transaction_id) {
		this.transaction_id = transaction_id;
	}

	public String getOut_trade_no() {
		return out_trade_no;
	}

	public void setOut_trade_no(String out_trade_no) {
		this.out_trade_no = out_trade_no;
	}
	

	
	
    
    
    
    
}
